package com.dy.design_pattern_study.observer_mode.dome2_decoupling.observer_code.impl;

import com.dy.design_pattern_study.observer_mode.dome2_decoupling.notifier_code.Subject;
import com.dy.design_pattern_study.observer_mode.dome2_decoupling.observer_code.Observer;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-03
 * @Content
 */
public class NBAObServer extends Observer {

    public NBAObServer(String name, Subject sub) {
        super(name, sub);
    }

    @Override
    public void Update() {
        System.out.println(sub.sendMsg() + "," + name + "关闭NBA 继续工作。。" );
    }
}
